package com.yizn.learn.springext.beandefinition;

import com.yizn.learn.springext.converter.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * project : my-learn
 * <p>  </p>
 *
 * @author yisl
 * @date 2023-01-13【星期五】
 **/
@RestController
public class BeanFactoryController {

    @Autowired
    private User user;
    @GetMapping("/beanfactory")
    public void test(){
        System.out.println(user.getName());
    }
}
